﻿using System.IO;
using System.Text;
using System.Web.Mvc;
using System.Web.UI;
using WinnerCMS.BLL.PageFactory.TagModule;
using WinnerCMS.Common;

namespace WinnerCMS.WebFactory
{
    /// <summary>
    /// 前台用的基类
    /// </summary>
    public class ClientPublicPage : Page
    {

        #region 重写Render
        protected override void Render(HtmlTextWriter writer)
        {
            StringBuilder winner = new StringBuilder();
            using (TextWriter tempWriter = new StringWriter())
            {
                base.Render(new HtmlTextWriter(tempWriter));
                winner.Append(tempWriter.ToString());
            }
             
            TagEngine.ReplaceM(winner, 0);
             

            writer.Write(winner.ToString());
        }
        #endregion


    
    }
}